import request from "@/utils/request";

// 查询角色数据权限
export function listRolePermissions(data) {
  return request({
    url: "/role-permission/list",
    method: "get",
    params: data,
  });
}

// 新增角色数据权限
export function insertRolePermission(data) {
  return request({
    url: "/role-permission",
    method: "post",
    data,
  });
}

// 编辑角色数据权限
export function updateRolePermission(data) {
  return request({
    url: "/role-permission",
    method: "put",
    data,
  });
}
